<?php defined('SYSPATH') or die('No direct script access.'); ?>
<div class="box">
	<h2><?php echo $post->title; ?></h2>
	<b><?php echo I18n::get('Posted on') . ' ' . $post->date; ?></b>
	<b><?php echo I18n::get('Posted by') . ' ' . $post->user; ?></b>
	
	<div class="box2">
		<?php echo $post->content; ?>
	</div>
	
	<div class="box2">
		<?php echo View::factory('bits/share'); ?>
		<br />
		
		<h2><?php echo I18n::get('Comments'); ?></h2>
		<a href="javascript:void();" class="button" onclick="$('#comment_add').slideToggle()"><?php echo I18n::get('Add comment') . '...'; ?></a>
		<br /><br />
		
		<!-- Adding comment -->
		<div id="comment_add" style="display: none;" class="box3">
			<?php
				echo Form::open('comments/add', array('method' => 'post'));
				echo I18n::get('Comment') . ':<br />';
				echo Form::textarea('comment') . '<br />';
				echo Form::submit('submit', I18n::get('Submit'));
			?>
		</div>
		
		<div id="comment-1" class="box3">
			<h3>I like this!</h3>
			<b><?php echo I18n::get('Posted on') . ' ' . date('d-M-Y') . ' by admin'; ?></b>
			<div class="box2">
				<p>
					I really like the way kotan works!
				</p>
			</div>
			
			<div style="margin-top: 8px; float: right;">
				<?php echo HTML::anchor('comments/add/1', I18n::get('Reply') . '...', array('class' => 'button')); ?>
			</div>
			
			<br style="font-size: 26px;" />
		</div>
	</div>
</div>